package svcmodel

import (
	"github.com/zeromicro/go-zero/core/stores/cache"
	"github.com/zeromicro/go-zero/core/stores/sqlx"
)

var _ GatewayServiceLoadBalanceModel = (*customGatewayServiceLoadBalanceModel)(nil)

type (
	// GatewayServiceLoadBalanceModel is an interface to be customized, add more methods here,
	// and implement the added methods in customGatewayServiceLoadBalanceModel.
	GatewayServiceLoadBalanceModel interface {
		gatewayServiceLoadBalanceModel
	}

	customGatewayServiceLoadBalanceModel struct {
		*defaultGatewayServiceLoadBalanceModel
	}
)

// NewGatewayServiceLoadBalanceModel returns a model for the database table.
func NewGatewayServiceLoadBalanceModel(conn sqlx.SqlConn, c cache.CacheConf) GatewayServiceLoadBalanceModel {
	return &customGatewayServiceLoadBalanceModel{
		defaultGatewayServiceLoadBalanceModel: newGatewayServiceLoadBalanceModel(conn, c),
	}
}
